#ifndef _Stack_
#define _Stack_
#include "server.h"

typedef struct node
{
    char data[32];
    struct node *next;
} node_t;

typedef struct
{
    node_t *front;
    node_t *rear;
    int size;
} List, Stack, Queue;

List *createList();
Queue *createQueue();

char* frontQueuePop(Queue* stack);
char* rearQueuePop(Queue* stack);
int rearInsert(List *list, char *data);
int frontInsert(List *list, char *data);

int segPath(char* toPath, Queue* stack);

#endif
